package com.xieyunjie.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @program: 0812springboot
 * @author: 雷哥
 * @create: 2019-12-17 09:50
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    @JsonProperty(value = "userid")
    @JSONField(name = "userid")
    private Integer id;
    private String name;
    private String address;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date brith;


}
